// initial state
const state = {
    validatePassword:'',
    allLan:{},
    currentLan:''
};

// getters
const getters = {
    lanData:state => {
        return state.allLan;
    },
    currentLan:state => {
        return state.currentLan;
    }
};


// actions
const actions = {
    getLanChoice:(context,data) => {
        context.commit("getLanChoice",data);
    }
};

// mutations
const mutations = {
    getLanChoice:(state,data) => {
        state.allLan = data;
    },
    setCurrentLan:(state,key) => {
        state.currentLan = key;
    },
    saveValidatePassword:(state,key) => {
        state.validatePassword = key;
    }
};

export default {
  state,
  getters,
  actions,
  mutations
}
